package service;

import java.sql.Date;
import java.util.List;

import model.Recharge;
import dao.DaoImp_Recharge;
import dao.IDao_Recharge;

public class ServiceImp_Recharge implements IService_Recharge
{
	private IDao_Recharge dao_Recharge;

	public ServiceImp_Recharge(IDao_Recharge dao_Recharge)
	{
		this.dao_Recharge=dao_Recharge;
	}

	public List<Recharge> queryByName(String name, int scale)
	{
		return dao_Recharge.queryByName(name,scale);
	}

	public List<Recharge> queryByDate(Date start, Date end)
	{
		return dao_Recharge.queryByDate(start, end);
	}

	public List<Recharge> queryByTelephone(String telephone, int scale)
	{
		return dao_Recharge.queryByTelephone(telephone,scale);
	}
	
	public List<Recharge> queryAll(int scale)
	{
		return dao_Recharge.queryAll(scale);
	}

	public List<Recharge> queryByDate(String date_Recharge, int scale)
	{
		return dao_Recharge.queryByDate(date_Recharge,scale);
	}

	public List<Recharge> queryByMeter(int meter_recharge, int scale)
	{
		return dao_Recharge.queryByMeter( meter_recharge,  scale);
	}


	public List<Recharge> queryByRent(int rent_recharge, int scale)
	{
		return dao_Recharge.queryByRent( rent_recharge,  scale);
	}

	public int addRecharge(Recharge recharge)
	{
		return dao_Recharge.addRecharge(recharge);
	}

	public int deteleRecharge(Recharge currentRecharge)
	{
		return dao_Recharge.deteleRecharge(currentRecharge);
	}


}
